package Main;

import Main.Menu;

/**
 * 
 * @author Fagner fjas
 */

public class Main {
	private static Menu menuPrincipal;
	
	public static void main(String[] args){
		menuPrincipal = new Menu("\nBem vindo ao MusiClub (V 1.0)", "Opção -> ", 0 );
		menuPrincipal.addItem("1 - Login");
		menuPrincipal.addItem("2 - Cadastro");
		
		// Loop do menu principal
		do{
			try {
				menuPrincipal.printMenu();
			} catch (Exception e) {
				System.out.println( e.getMessage() );
			}
		switch( menuPrincipal.Option ){
		case 1:
			System.out.println( "Fazer login!" );
			break;
		case 2:
			System.out.println( " Cadastro " );
			break;
		}
		
		System.out.println( menuPrincipal.Option );	
		System.out.println( menuPrincipal.OptionSair);
			
			
		} while ( menuPrincipal.Option != menuPrincipal.OptionSair );
	}
	
}